namespace SimpleWebServices.Web.Routing
{
    using System;
    using System.Web.Routing;
    using Xunit;

    public sealed class IRegisterRoutesFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IRegisterRoutes).IsInterface);
        }

        [Fact]
        public void IRegisterRoutes_Register_RouteCollection()
        {
            try
            {
                (new IRegisterRoutesDummy() as IRegisterRoutes).Register(null as RouteCollection);
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}